<template>
  <div>
    <el-radio-group v-model="templateRadio" size="small" class="radio">
      <el-radio v-for="item,index in templateData" :key="index" :label="item" border class="item">{{item.name}}</el-radio>
    </el-radio-group>
  </div>
</template>

<script>
  export default {
    props: ['templateData'],
    data() {
      return {
        templateRadio: null
      }
    },
  }
</script>

<style lang="scss" scoped>
.radio{
  display: flex;
  flex-direction: column;
  justify-content: center;
  .item{
    margin: 5px !important;
  }
}
</style>
